import request from '@/utils/request'

// 查询题目标题列表
export function listQuestionTopic(query) {
  return request({
    url: '/system/questionTopic/list',
    method: 'get',
    params: query
  })
}

// 查询题目标题详细
export function getQuestionTopic(id) {
  return request({
    url: '/system/questionTopic/' + id,
    method: 'get'
  })
}

// 新增题目标题
export function addQuestionTopic(data) {
  return request({
    url: '/system/questionTopic',
    method: 'post',
    data: data
  })
}

// 修改题目标题
export function updateQuestionTopic(data) {
  return request({
    url: '/system/questionTopic',
    method: 'put',
    data: data
  })
}

// 删除题目标题
export function delQuestionTopic(id) {
  return request({
    url: '/system/questionTopic/' + id,
    method: 'delete'
  })
}
